﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using MyPublisher.Framework;

namespace MyPublisher.Administration
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public static EntityFactory EntityFactory { get; private set; }
        public static TypesFactory TypesFactory { get; private set; }

        private void OnStartup(object sender, StartupEventArgs e)
        {
            TypesFactory = new LocalTypesFactory();
            EntityFactory = new LocalEntityFactory(TypesFactory);

            Views.MainView view = new Views.MainView();
            ViewModels.MainViewModel model = new ViewModels.MainViewModel(view);
            model.Show();
        }
    }
}
